from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext import db
import models
import dbRecords
from models import Dish
from models import DishType
from models import Ingredient
from models import IngredientType
from models import Restaurant

class MainPage(webapp.RequestHandler):
    def get(self):
        self.response.headers['Content-Type'] = 'text/plain'
        self.response.out.write('Hello, BFB World!')
#        query = Dish.all()
#        entries =query.fetch(1000)
#        db.delete(entries)
#        query = DishType.all()
#        entries =query.fetch(1000)
#        db.delete(entries)
#        query = Ingredient.all()
#        entries =query.fetch(1000)
#        db.delete(entries)
#        query = IngredientType.all()
#        entries =query.fetch(1000)
#        db.delete(entries)
#        query = Restaurant.all()
#        entries =query.fetch(1000)
#        db.delete(entries)
#        query = User.all()
#        entries =query.fetch(1000)
#        db.delete(entries)
        
#        records = dbRecords.dbRecords()
#        records.get()

application = webapp.WSGIApplication([('/', MainPage)], debug=True)
        
def main():
    run_wsgi_app(application)
    
if __name__ == "__main__":
    main()